'use strict'

process.chdir(__dirname)

const titbit = require('titbit')

const app = new titbit()

let html = `<!DOCTYPE html>
  <html>
    <head><title>TEST</title></head>
    <body>OK</body>
</html>`


app.get('/', async c => {
  c.setHeader('content-type', 'text/plain')
  c.send(html)
})

app.run(2021)
